package com.example.test.contract;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by lsl on 2021/2/25.
 */
@Data
@ApiModel("创建用户地址")
public class CreateUserAddressParams {
    @ApiModelProperty("用户id")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @ApiModelProperty("用户地址")
    @NotBlank(message = "用户地址不能为空")
    private String address;
}
